package cn.zz.comm.types.result;

import cn.zz.comm.core.types.query.PageQuery;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author zhongq
 * @since 2022/3/19
 */
@Getter
@Setter
public class Pex<T, S> extends P<T> {

	private S extra;

	public Pex(PageQuery page, List<T> data, S extra) {
		super(page, data);
		this.extra = extra;
	}

	public static <T, S> Pex<T, S> of(PageQuery page, List<T> data, S extra) {
		return new Pex<>(page, data, extra);
	}
}